package com.springbootmybatiscurd.service;

import com.springbootmybatiscurd.pojo.Emp;
import com.springbootmybatiscurd.pojo.PageBean;
import com.springbootmybatiscurd.pojo.Query;
import org.apache.ibatis.annotations.Param;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

public abstract interface empService  {
    public PageBean listEmpService(Integer page,Integer pageSize) ;  //获取员工数据
    public PageBean pageService(Integer page,Integer pageSize, String name,
    short gender,  LocalDate startTime,  LocalDate endTime) ;  //分页查询


    public String addEmpService(Emp emp); //增加员工

    public Integer deleteEmpService(Integer id); //根据ID删除员工


    public Emp updateEmpService(Emp emp); //修改员工



    public  List<Integer>deleteAllService(List<Integer> list);


    //查询回显数据
   public Emp getByIdService(Integer id);
}
